package com.practice.lambda.funcs;

import com.practice.lambda.entity.Employee;
import com.practice.lambda.functionalinterface.EmpPredicate;

/**
 * @author hd
 * @date 2022/1/28 14:34
 */
public class FilterByAge implements EmpPredicate {
    @Override
    public boolean handle(Employee employee) {
        return employee.getAge() >= 35;
    }
}
